package com.teacold.customdemo.chapter_three;

import android.animation.TypeEvaluator;


public class CharEvaluator implements TypeEvaluator<Character> {
    @Override
    public Character evaluate(float fraction, Character startValue, Character endValue) {
        int startInt=startValue;
        int endInt=endValue;
        int curInt= (int) (startInt+fraction*(endInt-startInt));
        char result= (char) curInt;
        return result;
    }
}
